package org.xxpay.pay.channel.xinfu;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Component;
import org.springframework.util.Assert;
import org.xxpay.common.unify.AbstractPaymentConfig;

public class XinfuConfig extends AbstractPaymentConfig {
    public static final String CHANNEL_NAME = "xinfu";
    public static final String CHANMEL_NAME_QUICK = CHANNEL_NAME + "_quick";


    XinfuConfig(String payParam){
        Assert.notNull(payParam, "init quanmin config error");
        JSONObject object = JSON.parseObject(payParam);
        setMchId(object.getString("mchId"));
        setPrivateKey(object.getString("privateKey"));
        setRequestUrl(object.getString("requestUrl"));
    }
}
